my_list = ['apple', 'banana', 'grapes', 'pear']
for c, value in enumerate(my_list, 1):  # 可选参数允许我们定制从哪个数字开始枚举
    print(c, value)

# 创建包含索引的元组列表
counter_list = list(enumerate(my_list, 1))
print(counter_list)
